#include <stdio.h>

int main() {
	int i = 785;
	float f = 1.5678e3;
	double d = 1.5e100;
	printf("%d\n", i == (int)(float)i);
	printf("%d\n", f == (float)(int)f);
	printf("%d\n", f == (float)(double)f);
	printf("%d\n", (d + f) - d == f);
	return 0;
}